//
// Created by User on 24-10-9.
//
#include <gtest/gtest.h>
#include <glog/logging.h>
#include <vector>
#include "general_demuxer.h"
#include "general_muxer.h"

TEST(muxer_test, muxer_init)
{
    using namespace std;
    demuxer::general_demuxer gd1(VIDEO_PATH);
    vector<interfaces::packet_provider*> streams;
    for (auto& stream : gd1.get_streams())
    {
        streams.push_back(stream.get());
    }
    muxer::general_muxer muxer(VIDEO_OUTPUT_PATH, streams);
}


TEST(muxer_test, mux_packet)
{
    using namespace std;
    demuxer::general_demuxer gd1(VIDEO_PATH);
    vector<interfaces::packet_provider*> streams;
    for (auto& stream : gd1.get_streams())
    {
        streams.push_back(stream.get());
    }
    muxer::general_muxer muxer(VIDEO_OUTPUT_PATH, streams);
    muxer.start_mux();
}
